from django.contrib import admin

# Register your models here.

# 注册模型到admin，方便后台管理
from .models import Comment

class CommentAdmin(admin.ModelAdmin):
    list_display = ['name','email','url','post','created_time']
    fields = ['name','email','url','text','post']



admin.site.register(Comment,CommentAdmin)
